//
//  Response.swift
//  cmd
//
//  Created by 郭颢源 on 2021/4/1.
//

import Foundation
import HandyJSON


public struct DataResponse<T>: RequestProtocol where T: HandyJSON {
    public init (){}
    public var code: Int = -1
    public var msg: String = ""
    public var data: T?
}
public struct ListResponse<T>: RequestProtocol where T: HandyJSON {
    public init (){}
    public var code: Int = -1
    public var msg: String = ""
    public var data: [T] = []
}
public struct MsgResponse:  RequestProtocol {
    public init (){}
    public var code: Int = -1
    public var msg: String = ""
    public var data: String?
}
